package lx.springBoot.dao;

import common.Page;

import java.util.List;

/**
 * Created by lx on 2017/7/4.
 * 通用dao层
 */
public interface BaseDao<T> {

    public T findById(Object id)throws Exception;

    public <T> List<T> findByPage(Page page) throws  Exception;

    public Long insert(T t)throws Exception;
}
